<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head lang="en" th:fragment="head">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link href="http://cdn.jsdelivr.net/webjars/bootstrap/3.3.4/css/bootstrap.min.css"
          th:href="@{/webjars/bootstrap/3.3.4/css/bootstrap.min.css}"
          rel="stylesheet" media="screen" />

    <script src="http://cdn.jsdelivr.net/webjars/jquery/2.1.4/jquery.min.js"
            th:src="@{/webjars/jquery/2.1.4/jquery.min.js}"></script>

    <link href="../static/css/style.css"
          th:href="@{/css/style.css}" rel="stylesheet" media="screen"/>
</head>
<body>
<div class="container">

    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="#" th:href="@{/}">Home</a>
                <ul class="nav navbar-nav">
                    <li><a href="#" th:href="@{/products}">Products</a></li>
                    <li><a href="#" th:href="@{/products2}">Products2</a></li>
                    <li><a href="#" th:href="@{/product/new}">Create Product</a></li>
                    <li><a href="#" th:href="@{#}" onclick="$('#form').submit();">Logout</a></li>
                </ul>
                <form style="visibility: hidden" id="form" method="post" action="#" th:action="@{/logout}"></form>
            </div>
        </div>
    </nav>

    <div class="jumbotron">
        <div class="row text-center">
            <div class="">
                <h2 layout:fragment="header">Spring Boot Demo</h2>
            </div>
        </div>
        <div class="row text-center">
            <img src="../static/images/NewBannerBOOTS_2.png" width="400"
                 th:src="@{/images/NewBannerBOOTS_2.png}"/>
        </div>
    </div>

    <div class="alert alert-success"
         th:if="${globalMessage}"
         th:text="${globalMessage}">
        Some Success message
    </div>

    <div layout:fragment="content">
        Fake content
    </div>

</div>
</body>
</html>